#include <stdio.h>
void test (int arr[], int sz)
{
    for (int i = 0; i <= sz; i++)
    {
        arr[i] = i;
    }
}
void print (int arr[], int sz)
{
    for (int i = 0; i <= sz; i++)
    {
        printf("%d ", arr[i]);
    }
    
}

int main()
{
    int arr[10] = {0};
    int sz = sizeof (arr) / sizeof (arr[0]);
    test (arr, sz);//初始化
    print (arr, sz);//输出

    return 0;
}